package com.kgc.sbt.beans;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * user_coupons
 * @author 
 */
//@ApiModel(value="com.kgc.sbt.beans.UserCoupons优惠券表")
@Data
public class UserCoupons implements Serializable {
    /**
     * 用户拥有优惠券id
     */
    @ApiModelProperty(value="用户拥有优惠券id")
    private Integer couponsId;

    /**
     * 用户id
     */
    @ApiModelProperty(value="用户id")
    private Integer userId;

    /**
     * 优惠券编号
     */
    @ApiModelProperty(value="优惠券编号")
    private String couponsNum;

    /**
     * 优惠券起始时间
     */
    @ApiModelProperty(value="优惠券起始时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date startTime;

    /**
     * 优惠券失效时间
     */
    @ApiModelProperty(value="优惠券失效时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date endTime;



    private static final long serialVersionUID = 1L;
}